home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-11-12 | 4.5 KB | 75 lines | [TEXT/MACA] |
- * Sample of MACropoedia BBS's FSP Control file
- * MACropoedia may be accessed at 312-295-6926 at 1200 or 2400 baud
- *
- * For purposes of brevity FSL means a file section listing.
- *
- CLEAR ;Clear memory
- *
- * Define a process to be repeated
- *
- DEFINEMACRO "ProcSection" ;name it "ProcSection"
- LOAD "@1" ;load the file section named @1. @1 is a wild card as used here.
- DELETE/AGE "365" ;mark for deletion all files oveer 365 days old
- CHECK/PATH ;check path of all entries to make sure the underlying
- * ;file is still there. Mark for deletion those that are not.
- PURGE/DELETE ;Purge removes files from section where marked for deletion.
- * ;Delete sends files to trash can when marked for deletion.
- SORT/TITLE ;Sort remaining listings by Title
- SAVE "@1" ;Save file section back using proper section name
- ENDMACRO ;Defines end of procedure
- *
- DEFINE "WHERE" "HD:RRH" ;Defines "Where" to be path to the FSL
- ProcSection "WHERE:BIBFOLDER:DLBIB" ;Begin processing file section DLBIB
- ProcSection "WHERE:BIZFOLDER:DLBIZ" ;Then processes file section DLBIZ, etc.
- ProcSection "WHERE:DAFOLDER:DLDA'S" ;Each section is processed separately. First loading
- ProcSection "WHERE:FKEYFOLDER:DLFKEYS" ;memory with the names of all files listed in that
- ProcSection "WHERE:FONTSFOLDER:DLFONTS" ;section. Then deleting those over 365 days old.
- ProcSection "WHERE:GAMESFOLDER:DLGAMES" ;FSP then checks each listing to assure the path to the
- ProcSection "WHERE:GIFFOLDER:DLGIF" ;underlying file matches that of the FSL.
- ProcSection "WHERE:HYPERFOLDER:DLHC" ;Any file listing marked for deletion is removed from
- ProcSection "WHERE:MACIIFOLDER:DLMACII" ;the listing. Any file referenced for deletion is removed
- ProcSection "WHERE:MAGFOLDER:DLMAG" ;from the drive (disk). Files are then sorted by title and
- ProcSection "WHERE:MUSICFOLDER:DLMUSIC" ;the file section is written back to where it came from.
- ProcSection "WHERE:PICFOLDER:DLPIC" ;The new file section appears sorted by title and all
- ProcSection "WHERE:SSFOLDER:DLSS" ;path names are correct. This prevents the unsightly
- ProcSection "WHERE:TERMFOLDER:DLTC" ;"file not found" error from being sent to a caller.
- ProcSection "WHERE:UTILFOLDER:DLUTIL" ;It also allows Sysop to trash a file from the desktop
- ProcSection "WHERE:VAFOLDER:DLVIDEO" ;and, when running FSP, automatically remove the
- ProcSection "WHERE:TopFOLDER:DLTop" ;reference to the file in the FSL.
- *
- CLEAR ;clear memory
- *
- DEFINE "WHERE" "HD:rrh" ;Defines "Where" to be path to the FSL.
- ADD "WHERE:BIBFOLDER:DLBIB" ;Start a new routine where we add to memory all the file
- ADD "WHERE:BIZFOLDER:DLBIZ" ;listing from all of the sections.
- ADD "WHERE:CEFOLDER:DLCE"
- ADD "WHERE:DAFOLDER:DLDA'S"
- ADD "WHERE:FKEYFOLDER:DLFKEYS"
- ADD "WHERE:FONTSFOLDER:DLFONTS"
- ADD "WHERE:GAMESFOLDER:DLGAMES"
- ADD "WHERE:GIFFOLDER:DLGIF"
- ADD "WHERE:HYPERFOLDER:DLHC"
- ADD "WHERE:MACIIFOLDER:DLMACII"
- ADD "WHERE:MAGFOLDER:DLMAG"
- ADD "WHERE:MUSICFOLDER:DLMUSIC"
- ADD "WHERE:PICFOLDER:DLPIC"
- ADD "WHERE:SSFOLDER:DLSS"
- ADD "WHERE:TERMFOLDER:DLTC"
- ADD "WHERE:UTILFOLDER:DLUTIL" ;When done, all files in all section will be contained
- ADD "WHERE:VAFOLDER:DLVIDEO" ;in memory.
- *
- FORMAT "TITLE+SECT:12+SIZEK+DATE+UPLDR+CR:0+DESCA" ;Define a format for listings to be created.
- SORT/TITLE ;Sort all files in memory by name.
- SAVE "WHERE:ALPHAFOLDER:DLALPHA" ;Save this new FSL in one alphabetically sorted FSL
- SAVETEXT/Format "WHERE:TXT:List Of All Files" ;Save a text file of the whole list using the format
- * ;defined earlier.
- SORT/DATE ;Resort memory by date
- SAVE "WHERE:LATESTFOLDER:LATEST" ;Save as a chronological FSL
- DELETE/AGE "10" ;Mark all listings from memory >10 days old
- PURGE ;Remove all marked listings from memory.
- SAVETEXT/Format "WHERE:System3.msg" ;Save a text file for display at logon.
- *
- Launch "HD:RRH:RR Host" ;Launch Host
- *
-